function route(pathname,handle,response){
	console.log("--Request for "+pathname+" received.");

	if(typeof handle[pathname] === 'function'){
		return handle[pathname](response);
	}
	else{
		console.log("No request handler found for "+pathname+"\n");
		response.writeHead(404,{"Content-Type":"text/plain"});
		response.write("404 Not Found");
		response.end();
	}
}

exports.route = route;